package com.sam.store.sample;

import android.app.Application;

import com.sam.lib.store.StoreManage;
import com.sam.lib.store.mmkv.MMKVStore;
import com.sam.lib.store.sp.SharePreferenceStore;

public class App extends Application {

    public static App app = null;

    public static App getApp() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;

        StoreManage.initialize(this, MMKVStore.getStore(this));
        StoreManage.migrate(this, "", 0, SharePreferenceStore.getStore(), MMKVStore.getStore(this));

    }
}
